package com.thwj.project.biz.enums;

/***
 * 账号认证 类别
 */
public enum UserAuthenticationTypeEnum {

    person(1,"个人"),
    club(2,"俱乐部"),
    ;
    UserAuthenticationTypeEnum(int value, String name){
        this.name = name;
        this.value = value;
    }

    private int value;
    private String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static UserAuthenticationTypeEnum getEnumByValue(Integer value){
        for (UserAuthenticationTypeEnum typeEnum : UserAuthenticationTypeEnum.values()) {
            if(typeEnum.value == value) {
                return typeEnum;
            }
        }
        return null;
    }
}
